<?php

use Illuminate\Database\Seeder;
use \Illuminate\Support\Facades\DB;

class SidebarsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        DB::table('sidebars')->insert([
            'id'=> 1,
            'name' => '我的首页',
            'url' => '/',
            'icon' => 'fa-dashboard',
            'sort' => 1,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=>2,
            'name' => "系统管理",
            'url' => '',
            'icon' => "fa-align-justify",
            'sort' => 8,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 3,
            'name' => '用户管理',
            'url' => '/users',
            'icon' => 'fa-address-book',
            'sort' => 1,
            'pid' => 2,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 4,
            'name' => '角色管理',
            'url' => '/roles',
            'icon' => 'fa-cog',
            'sort' => 2,
            'pid' => 2,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 5,
            'name' => '权限管理',
            'url' => '/permissions',
            'icon' => 'fa-cogs',
            'sort' => 3,
            'pid' => 2,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 6,
            'name' => '菜单管理',
            'url' => '/menus',
            'icon' => 'fa-list',
            'sort' => 4,
            'pid' => 2,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 7,
            'name' => '项目申请管理',
            'url' => '/project/apply',
            'icon' => 'fa-list',
            'sort' => 3,
            'pid' => 0,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 8,
            'name' => '项目执行管理',
            'url' => '/project/execute',
            'icon' => 'fa-list',
            'sort' => 4,
            'pid' => 0,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 9,
            'name' => '项目完成管理',
            'url' => '/project/complete',
            'icon' => 'fa-list',
            'sort' => 5,
            'pid' => 0,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('sidebars')->insert([
            'id'=> 10,
            'name' => '项目综合管理',
            'url' => '/project/comprehensive',
            'icon' => 'fa-list',
            'sort' => 6,
            'pid' => 0,
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
    }
}
